Version

RemoveAll<T>(IList<T>,T) Method

Removes all occurrences of itemToRemove from list.
Syntax
public static void RemoveAll<T>( 
   IList<T> list,
   T itemToRemove
)

Parameters

list
List whose items should be removed
itemToRemove
The value of the items that should be removed

Type Parameters

T
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also